package com.esms.bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Person entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Person implements java.io.Serializable {

	// Fields

	private Integer id;
	private String userid;
	private String password;
	private Date timestamp;
	private String name;
	private String sex;
	private String birthday;
	private String email;
	private Integer mobile;
	private Integer creator;
	private Set contracts = new HashSet(0);
	private Set groups = new HashSet(0);
	private Set contracts_1 = new HashSet(0);

	// Constructors

	/** default constructor */
	public Person() {
	}

	/** minimal constructor */
	public Person(String userid, String password) {
		this.userid = userid;
		this.password = password;
	}

	/** full constructor */
	public Person(String userid, String password, Date timestamp, String name,
			String sex, String birthday, String email, Integer mobile,
			Integer creator, Set contracts, Set groups, Set contracts_1) {
		this.userid = userid;
		this.password = password;
		this.timestamp = timestamp;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.email = email;
		this.mobile = mobile;
		this.creator = creator;
		this.contracts = contracts;
		this.groups = groups;
		this.contracts_1 = contracts_1;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getTimestamp() {
		return this.timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return this.birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getMobile() {
		return this.mobile;
	}

	public void setMobile(Integer mobile) {
		this.mobile = mobile;
	}

	public Integer getCreator() {
		return this.creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}

	public Set getContracts() {
		return this.contracts;
	}

	public void setContracts(Set contracts) {
		this.contracts = contracts;
	}

	public Set getGroups() {
		return this.groups;
	}

	public void setGroups(Set groups) {
		this.groups = groups;
	}

	public Set getContracts_1() {
		return this.contracts_1;
	}

	public void setContracts_1(Set contracts_1) {
		this.contracts_1 = contracts_1;
	}

}